<!doctype html>
<html lang="en">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>货物入库</title>
	<script type="text/javascript" src="__PUBLIC__/hdjs/jquery-1.11.3.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/hdjs/hdjs.css"/>
    <script type="text/javascript" src="__PUBLIC__/hdjs/hdjs.min.js"></script>
	<link href="__PUBLIC__/css/mine.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<div class="div_head">
		<span>
			<span style="float: left;">当前位置是：仓库管理 >></span><span>货物入库</span>
			<span style="float: right; margin-right: 8px; font-weight: bold;">
				<a style="text-decoration: none;" href="{:U('Goods/add')}">【录入货物信息】</a>
			</span>
			<span style="float: right; margin-right: 8px; font-weight: bold;">
				<a style="text-decoration: none;" href="{:U('Excel/import_c')}">【批量导入库存】</a>
			</span>
		</span>
	</div>
	
	<div style="font-size: 13px; margin: 0px 5px;padding:0 20px;">
		<p class="hd-title-header">按货物名称查找</p>
		<form method="get" action="__SELF__">
		<input type="hidden" name="p" value="1" />
		<input type="hidden" name="b_id" value="0" />
		输入货物名称：<input type="text" name="g_name" value="<?php echo I('get.g_name'); ?>" class="hd-w250 hd-h40" />
		<input type="submit" value="查找" class="hd-btn hd-btn-primary"/>
		</form>
		<!-- <p class="hd-title-header">按所属仓库查找</p>
		<dl class="w_bm_l" >
			<volist name="c_list" id="b">
				<if condition="$b['level'] eq 1">
				<dt><a href="{:U('add_to_w',array('b_id'=>$b['id']))}">{$b.name}</a></dt>
				<else />
				<dd><a href="{:U('add_to_w',array('b_id'=>$b['id']))}">{$b.name}</a></dd>
				</if>
			</volist>
		</dl> -->
	</div>

	<div style="font-size: 13px; margin: 0px 5px;padding:0 20px;clear:both" class="hd-menu-list">
		<div class="hd-page">
			{$page}
		</div>
		<table class="hd-table hd-table-list">
			<thead>
				<tr style="font-weight: bold;">
					<td class="hd-w30">编号</td>
					<td class="">货物名称</td>
					<td class="hd-w50">现有库存</td>
					<td class="hd-w50">货物单位</td>
					<td class="hd-w100">货物单个重量</td>
					<td class="hd-w50">操作</td>
				</tr>
			</thead>
			<tbody>
				<volist name='g_list' id='vo'>
				<tr id="product1">
					<td>{$vo.g_id}</td>
					<td>{$vo.g_name}</td>
					<td><empty name="vo.gcount">0<else />{$vo.gcount}</empty></td>
					<td>{$vo.dw_name}</td>
					<td><if condition="$vo['g_zl'] eq 0 ">未知<else />{$vo.g_zl}kg</if></td>
                    <td><a href="{:U('add',array('gid' => $vo['g_id']))}" >入库</a></td>
				</tr>
				</volist>
			</tbody>
		</table>
		<div class="hd-page">
			{$page}
		</div>
	</div>
</body>
</html>